package com.kzx.blog.service.model;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * @author kongz
 * @version 1.0 2021/12/6 16:13
 * @description 博客更新参数
 */
@Data
public class BlogUpdateParam {

    /*
    编号
     */
    @NotNull(message = "编号不能为空")
    private int id;
    /*
    内容
     */
    @NotNull(message = "正文不能为空")
    private String content;
    /*
    状态
     */
    @Range(min = 0, max = 2, message = "状态传入错误")
    private int status;

}
